package com.atguigu.gmall.search.pojo;

import lombok.Data;

import java.util.List;

/**
 * @Date 2021/7/2 10:29
 * @Description TODO：封装接受搜索参数的数据模型
 */
@Data
public class SearchParamVo {

    //查询关键字
    private String keyword;
    //品牌的过滤条件
    private List<Long> brandId;
    //分类的过滤条件
    private List<Long> categoryId;
    //规格参数的过滤条件：["4:8G-12","5:128G-256G"]
    private List<String> props;
    //价格区间过滤
    private Double priceFrom;
    private Double priceTo;
    //仅显示有货
    private Boolean store;
    //排序： 0 默认排序 1 价格降序 2 价格升序 3 销量的降序 4 销量升序
    private Integer sort = 0;

    private Integer pageNum = 1; //页码
    private final Integer pageSize = 20;

}
